<?php
/* 
	[BuyPg] (C) 2010-2011 Buypg
	$Id: NewsModel.class.php 2011-4-13 15:07:59 wufujun $
 */

if (!defined('THINK_PATH')){
	exit('Access Denied');
}

class NewsModel extends Model{

	//获取新闻列表
	public function getNewsList($where,$order,$limit){
		$result = $this->where($where)->order($order)->limit($limit)->select();
		foreach ($result as $key=>$value){
			$result[$key]['full_news_title'] = $value['news_title'];
			$result[$key]['news_title'] = msubstr($value['news_title'],0 ,19 ,'utf-8' , FALSE);
		}
		return $result;
	}

}
?>
